package com.engine4cloud.tdf.supervision.dto.query;

import com.engine4cloud.tdf.common.core.constant.enums.NormalAuditActionStatusEnum;
import com.engine4cloud.tdf.common.data.web.response.Params;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 执行地变更申请-请求对象
 *
 * @author wenjie
 * @date 2024-04-10 11:04:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "执行地变更申请-请求对象")
public class SpChangePlaceQueryDTO extends Params {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 社区矫正人员编号
     */
    @Schema(description = "社区矫正人员编号")
    @NotBlank(message = "社区矫正人员编号不能为空")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作", example = "CREATE")
    private NormalAuditActionStatusEnum preAction;

    public SpChangePlaceQueryDTO(String batch) {
        this.lcbh = batch;
    }

    public SpChangePlaceQueryDTO(String code, String batch) {
        this.rybh = code;
        this.lcbh = batch;
    }
}